<script>
	import { mapActions } from 'vuex';
	export default {
		methods:{
			...mapActions('goods',['getGoodsList','getCarouselAll','getShopList']),
			...mapActions('address',['getAddressList']),
		},
		onLaunch: function() {
			// 获取分类信息
			this.getGoodsList({project_id:2})
			// 获取轮播图
			this.getCarouselAll({project_id:2})
			// 获取所有商品
			this.getShopList({project_id:2,limit:100})
			// 获取地址列表
			this.getAddressList()
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	/*每个页面公共css */
</style>
